package com.aifund.app.service;

import com.aifund.common.entity.AiUser;
import com.aifund.common.entity.AiUserBindExchange;

import java.util.List;

public interface UserBindExchangeService {

    /**
     * 获取用户交易所绑定
     * @param userId
     * @param exchangeId
     * @return
     */
    AiUserBindExchange getUserBindExchange(Long userId, Long exchangeId);

    /**
     * 获取ApiKey绑定交易所的情况
     * @param exchangeId
     * @param apiKey
     * @return
     */
    AiUserBindExchange getByExchangeIdAndApiKey(Long exchangeId,String apiKey);

    /**
     * 获取用户交易所的绑定情况
     * @param userId
     * @param exchangeId
     * @return
     */
    List<AiUserBindExchange> getByUserIdAndExchangeId(Long userId, Long exchangeId);

    void save(AiUserBindExchange userBindExchange);

}
